package com.yxjwzpx.management.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 船舶信息对象 ship
 * 
 * @author yxjwzpx
 * @date 2025-04-09
 */
public class Ship extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 船舶ID */
    private Long shipId;

    /** 船主用户ID */
    @Excel(name = "船主用户ID")
    private Long ownerId;

    /** 当前维护公司ID */
    @Excel(name = "当前维护公司ID")
    private Long companyId;

    /** 船舶类型ID */
    @Excel(name = "船舶类型ID")
    private Long typeId;

    /** 船舶名称 */
    @Excel(name = "船舶名称")
    private String shipName;

    /** 船舶编号/登记号（唯一标识，每艘船独有的注册号，可选） */
    @Excel(name = "船舶编号/登记号", readConverterExp = "唯=一标识，每艘船独有的注册号，可选")
    private String shipCode;

    /** 建造年份（可选） */
    @Excel(name = "建造年份", readConverterExp = "可=选")
    private String buildYear;

    /** 船舶状态（例如0=正常使用，1=维修中，2=停用/报废） */
    @Excel(name = "船舶状态", readConverterExp = "例=如0=正常使用，1=维修中，2=停用/报废")
    private String status;

    public void setShipId(Long shipId) 
    {
        this.shipId = shipId;
    }

    public Long getShipId() 
    {
        return shipId;
    }

    public void setOwnerId(Long ownerId) 
    {
        this.ownerId = ownerId;
    }

    public Long getOwnerId() 
    {
        return ownerId;
    }

    public void setCompanyId(Long companyId) 
    {
        this.companyId = companyId;
    }

    public Long getCompanyId() 
    {
        return companyId;
    }

    public void setTypeId(Long typeId) 
    {
        this.typeId = typeId;
    }

    public Long getTypeId() 
    {
        return typeId;
    }

    public void setShipName(String shipName) 
    {
        this.shipName = shipName;
    }

    public String getShipName() 
    {
        return shipName;
    }

    public void setShipCode(String shipCode) 
    {
        this.shipCode = shipCode;
    }

    public String getShipCode() 
    {
        return shipCode;
    }

    public void setBuildYear(String buildYear) 
    {
        this.buildYear = buildYear;
    }

    public String getBuildYear() 
    {
        return buildYear;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("shipId", getShipId())
            .append("ownerId", getOwnerId())
            .append("companyId", getCompanyId())
            .append("typeId", getTypeId())
            .append("shipName", getShipName())
            .append("shipCode", getShipCode())
            .append("buildYear", getBuildYear())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
